package edu.csumb.itcd.teammario;

import java.awt.Point;

public class PoisonTower extends Tower{
	
	private static int damage = 1;
	private static int rateOfFire = 20;
	private static int duration = 3;
	
	public PoisonTower(Point towerLocation, PoisonWeapon newWeapon)
	{
		super(towerLocation, newWeapon);
	}
	
	public PoisonWeapon getWeapon() {
		return (PoisonWeapon)weapon;
	}
	
	public static void setDamage(int damage)
	{
		PoisonTower.damage = damage;
	}
	
	public static int getDamage()
	{
		return damage;
	}
	
	public static void setRateOfFire(int rateOfFire)
	{
		PoisonTower.rateOfFire = rateOfFire;
	}
	
	public static int getRateOfFire()
	{
		return rateOfFire;
	}
	
	public static void setDuration(int duration)
	{
		PoisonTower.duration = duration;
	}
	
	public static int getDuration()
	{
		return duration;
	}
	public void updateTower()
	{
		weapon = new PoisonWeapon(damage, rateOfFire, duration);
	}
}
